<?php
/**
 * Date: 2024/12/6
 * Time: 9:55
 */

namespace App\Console\Commands\Rakuten\GuCang;

use App\Logic\Plat\SyncPlatOrder;
use Illuminate\Console\Command;

class CreateOverseasOrder extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'rakuten:create-overseas-order {delivery_order_no=null} {account_id=0}';

    /**
     * The console command description.
     * @var string
     */
    protected $description = 'exe func';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $deliveryOrderNo = $this->argument('delivery_order_no');
        $accountId = $this->argument('account_id');

        SyncPlatOrder::syncCreateRakutenOrder($deliveryOrderNo,$accountId);

        $this->info('finish!');
    }

}
